package com.qf.rbac2202.sys.controller;

import com.qf.rbac2202.sys.entity.SysUser;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;

public abstract class AbstractController  {

    protected SysUser getCurrentUser(){

        Subject subject = SecurityUtils.getSubject();

        SysUser sysUser = (SysUser) subject.getPrincipal();

        return sysUser;
    }
}
